﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQToolKit.Collections
{
    public sealed class QuerySessionMock : IQuerySession
    {
        private IEnumerable _inner;

        public QuerySessionMock(IEnumerable inner)
        {
            this._inner = inner;
        }

        public IEnumerable Inner
        {
            get { return this._inner; }
        }

        public IEnumerator GetEnumerator()
        {
            return this._inner.GetEnumerator();
        }

        public void Dispose()
        {
            // do nothing
        }
    }
}
